﻿<UserControl x:Class="WOWA.UI.Controls.RegionPicker"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	mc:Ignorable="d"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	d:DesignHeight="480" d:DesignWidth="480">
	
	<Grid x:Name="LayoutRoot">
		
		<toolkit:ListPicker x:Name="regions">
			<toolkit:ListPicker.ItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<Image Source="{Binding SmallFlag}" Width="16" Height="16" />
						<TextBlock Text="{Binding Region}" Margin="10, 0, 0, 0" />
					</StackPanel>
				</DataTemplate>
			</toolkit:ListPicker.ItemTemplate>
			<toolkit:ListPicker.FullModeItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<Image Source="{Binding LargeFlag}" Width="32" Height="32" />
						<TextBlock Text="{Binding Region}" Margin="10, 0, 0, 0" />
					</StackPanel>
				</DataTemplate>
			</toolkit:ListPicker.FullModeItemTemplate>
		</toolkit:ListPicker>

	</Grid>
</UserControl>
